package com.edu.study.base.stuQuestionOption.mapper;

import com.edu.study.base.stuQuestionOption.domain.StuQuestionOption;

import java.util.List;

/**
 * 试题选项内容Mapper接口
 *
 * @author jjt
 * @date 2021-04-02
 */
public interface StuQuestionOptionMapper
{
    /**
     * 查询试题选项内容
     *
     * @param id 试题选项内容ID
     * @return 试题选项内容
     */
    public StuQuestionOption selectStuQuestionOptionById(Long id);

    /**
     * 查询试题选项内容列表
     *
     * @param stuQuestionOption 试题选项内容
     * @return 试题选项内容集合
     */
    public List<StuQuestionOption> selectStuQuestionOptionList(StuQuestionOption stuQuestionOption);

    /**
     * 根据选择题的id查询选项
     * @param ids
     * @return
     */
    public List<StuQuestionOption> selectStuQuestionOptionListByIds(List<Long> ids);

    /**
     * 新增试题选项内容
     *
     * @param stuQuestionOption 试题选项内容
     * @return 结果
     */
    public int insertStuQuestionOption(StuQuestionOption stuQuestionOption);

    /**
     * 修改试题选项内容
     *
     * @param stuQuestionOption 试题选项内容
     * @return 结果
     */
    public int updateStuQuestionOption(StuQuestionOption stuQuestionOption);

    /**
     * 删除试题选项内容
     *
     * @param id 试题选项内容ID
     * @return 结果
     */
    public int deleteStuQuestionOptionById(String id);

    /**
     * 批量删除试题选项内容
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteStuQuestionOptionByIds(String[] ids);
}
